package com.hjx.windowtool.file;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;

public class TxtProcess {
	public static void main(String[] args) throws Exception {
		List<String> list = Files.readAllLines(Paths.get("C:\\Users\\hjx\\Documents\\Tencent Files\\2954775548\\FileRecv\\斗罗之最强赘婿.txt"));
		List<String> listNew=new ArrayList<>();
		for (String string : list) {
			if (listNew.contains(string)) {
				continue;
			}
			listNew.add(string);
		}
		Files.write(Paths.get("C:\\Users\\hjx\\Documents\\Tencent Files\\2954775548\\FileRecv\\斗罗之最强赘婿11.txt"), listNew);
	}
}
